<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
	<a href="helloworld">Hello World</a>
	<br/>
	
	<a href="springmvc/testRequestMapping">Test RequestMapping</a>
	<br/>
	
	<a href="springmvc/testMethod">Test Method</a>
	<br/>
	
	<form action="springmvc/testMethod" method="post">
		<input type="submit" value="submit"/>
	</form>
	<br/>
	
	<a href="springmvc/testParamsAndHeaders?username=lty&age=10">Test ParamsAndHeaders</a>
	<br/>
	
	<a href="springmvc/testAntPath/dfjdk/abc">Test AntPath</a>
	<br/>
	
	<a href="springmvc/testPathVariable/1">Test PathVariable1</a>
	<br/>
	
	<a href="springmvc/testRest/1">Test Rest GET</a>
	<br/>
	
	<form action="springmvc/testRest" method="post">
		<input type="submit" value="Test Rest POST"/>
	</form>
	<br/>
	
	<form action="springmvc/testRest/1" method="post">
		<input type="hidden" name="_method" value="DELETE"/>
		<input type="submit" value="Test Rest DELETE"/>
	</form>
	<br/>
	
	<form action="springmvc/testRest/1" method="post">
		<input type="hidden" name="_method" value="PUT"/>
		<input type="submit" value="Test Rest PUT"/>
	</form>
	<br/>
	
	<a href="springmvc/testRequestParam?username=lty&age=11">Test RequestParam</a>
	<br/>
	
	<a href="springmvc/testRequestHeader">Test RequestHeader</a>
	<br/>
	
	<a href="springmvc/testCookieValue">Test CookieValue</a>
	<br/>
	
	<form action="springmvc/testPojo" method="post">
		username:<input type="text" name="username"/>
		password:<input type="password" name="password"/>
		email:<input type="text" name="email"/>
		age:<input type="text" name="age"/>
		nationality:<input type="text" name="identity.nationality"/>
		province:<input type="text" name="identity.address.province"/>
		city:<input type="text" name="identity.address.city"/>
		<input type="submit" value="Test POJO"/>
	</form>
	
	<a href="springmvc/testServletAPI">Test Servlet API</a>
	<br/>
	
	<a href="springmvc/testModelAndView">Test ModelAndView</a>
	<br/>
	
	<a href="springmvc/testMap">Test Map</a>
	<br/>
	
	<a href="springmvc/testSessionAttributes">Test SessionAttributes</a>
	<br/>
	
	<!--
		模拟修改操作
		1、原始数据为：1,Tom,123,tom@163.com,12
		2、密码不能被修改
		3、表单回显，模拟操作只能在表单填写对应的属性值
	
	  -->
	<form action="springmvc/testModelAttribute" method="post">
		<input type="hidden" name="id" value="1"/>
		username:<input type="text" name="username" value="Tom"/>
		<br/>
		email:<input type="text" name="email" value="tom@163.com"/>
		<br/>
		age:<input type="text" name="age" value="12"/>
		<br/>
		<input type="submit" value="Submit"/>
	</form>
	<br/>
	
	<a href="springmvc/testViewAndViewResolver">Test ViewAndViewResolver</a>
	<br/>
	
	<a href="springmvc/testCustomView">Test CustomView</a>
	<br/>
	
	<a href="springmvc/testRedirectView">Test RedirectView</a>
	<br/>
	
	<a href="springmvc/testRedirectView2">Test RedirectView2</a>
	<br/>
	
	<a href="springmvc/testForwardView">Test ForwardView</a>
	<br/>
	
	<a href="springmvc/testForwardView2">Test ForwardView2</a>
	<br/>
</body>
</html>